<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

</head>
<body>
    <?php 
  $con=mysqli_connect("127.0.0.1","Mario","1234","museo");
  // Check connection
  if (mysqli_connect_errno())
    {
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
    }

          /*$result = mysqli_query($con,"SELECT * FROM obras");
          $result2 = mysqli_query($con,"SELECT * FROM artista");*/
          //mysql_select_db(museo) //or die (mysql_error());
          //$back = mysql_query($con, "SELECT * FROM artista");
         define(cons, "SELECT * FROM obras"); 
         //$cons =  "SELECT * FROM obras";
          //echo cons
         $cl = mysql_query(cons);



    while($row = mysqli_fetch_array($cl)) /*&& $row2 = mysqli_fetch_array($result2)*/
      {
        echo "Nombre de la Obra:" . " ". $row['nombre_obra']; 
        echo "<br>";
        //echo "Nombre:". " ". $row2['nombre_arti'];
        echo  "<br>";
         echo "Tecnica:" . " " .  $row['tecnica'];
        echo "<br>";
  
      }
  mysqli_close($con);
?>
  <form method="get" action="museo_pro" name="museo">
    <table style="text-align: left; width: 364px;" border="1" cellpadding="2" cellspacing="2">
      <tbody>
        <tr>
          <td style="width: 137px;">Nombre de la obra:</td>
          <td style="width: 209px;">
            <input maxlength="20" size="30" name="nombre_obra">
          </td>
        </tr>
        <tr>
          <td style="width: 137px;">Nombre del Autor:</td>
          <td style="width: 209px;">
            <input maxlength="30" size="30" name="nombre_arti">
          </td>
        </tr>
        <tr>
          <td style="width: 137px;">Categoria:</td>
          <td style="width: 209px;">
            <input maxlength="30" size="30" name="nombre_cat">
          </td>
        </tr>
        <tr>
          <td style="width: 137px;">Tecnica:</td>
          <td style="width: 209px;">
            <input maxlength="30" size="30" name="tecnica">
          </td>
        </tr>
      </tbody>
    </table>id:<input maxlength="4" size="4" name="id_obra">
    <br>
    <br>
  </form>
</body>
</html>